package DesignPattern.Singleton;

public class Dcl {
    private volatile static Dcl instance;

    private Dcl(){}

    public static Dcl getInstance() {
        if(instance == null){
            synchronized (Dcl.class){
                if(instance == null){
                    instance = new Dcl();
                }
            }
        }
        return instance;
    }
}
